package cn.tedu.four.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * ClassName: AlbumAddNewDTO
 * Package: cn.tedu.four.pojo.dto
 * Description:
 *
 * @Author: @Albert
 * @Version: 1.0
 */
@Data
public class AlbumAddNewDTO implements Serializable {

    @ApiModelProperty(value="相册名称",example="名称",required = true)
    @NotNull(message="必须提交相册名称")
    private String name;
    @ApiModelProperty(value="相册排序",example="100",required = true)
    @NotNull
    @Range(min=1,message = "输入值不符合最小值")
    private Integer sort;
    @ApiModelProperty(value="相册描述",example="这是描述",required = true)
    @NotNull(message="必须提交相册简介")
    private String description;
}
